package com.qf.day07.poly.tuxing;

/**
 * 矩形
 * 子类
 *
 */
public class Rectangle extends TuXing {
    private double width; //宽
    private double height; //高



    public double getWidth() {
        return width;
    }

    public void setWidth(double width) {
        this.width = width;
    }

    public double getHeight() {
        return height;
    }

    public void setHeight(double height) {
        this.height = height;
    }

    public Rectangle() {
    }

    public Rectangle(String name) {
        super(name);
    }

    public Rectangle(double width, double height) {
        this.width = width;
        this.height = height;
    }

    public Rectangle(String name, double width, double height) {
        super(name);
        this.width = width;
        this.height = height;
    }
}
